#ifndef SOCKSERVER_H
#define SOCKSERVER_H

#include <QStringList>
#include <QTcpServer>

class sockServer : public QTcpServer
{
    Q_OBJECT
public:
    sockServer(QObject *parent = 0);
    void setPath( QString path );
    void setBandwidth(int up, int down);

public slots:
    void clientDissconnected();

signals:
    void clientCountChanged(int count);

protected:
    void incomingConnection(int socketDescriptor);
    int clients;
    int upLimit;
    int downLimit;

private:
    QString path;
};

#endif // SOCKSERVER_H
